﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace Panchina.Security.IKey1000
{
    [Guid("73E0F277-1FAC-4512-9EA7-AD14A95503EA")]
    [InterfaceType(ComInterfaceType.InterfaceIsDual)]
    [ComVisible(true)]
    public interface IPanchinaIKeyX
    {
        [DispId(0)]
        void About();

        [DispId(1)]
        string GetKeySN(bool nextDevice);

        [DispId(2)]
        string GetUserName(bool nextDevice);

        [DispId(3)]
        string GetUserId(bool nextDevice);

        [DispId(4)]
        string GetUserToken();

        [DispId(5)]
        string GetUserIP();

        [DispId(6)]
        string CreateAdminKey(string userid, string username);

        [DispId(7)]
        string CreateUserKey(string userid, string username);

        [DispId(8)]
        string DeleteAdminKey();

        [DispId(9)]
        string DeleteUserKey();

        [DispId(10)]
        string WriteUserToken(string token);

        [DispId(11)]
        string WriteUserIP(string ip);
    }
}
